package cn.doitedu.kafka;

public class Teacher {


    // 成员（属性）变量
    float energy = 88f;
    String name = "张三";



    public Teacher(float x,String y){
        this.energy = x;
        this.name = y;
    }



    // 成员方法
    public void sayMyEnergy(){
        System.out.println(this.energy);
    }


}
